<<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function obj(o){
				function F() {}
				F.prototype=o;
				return new F();
			}
			var box={name:"张三",arr:["brother","sister","dad"]};
			function create(o) {
			     var f=obj(o);
			     f.run=function(){
			     	alert(this.arr.toString());
			     }
			     return f;
			}
			var o1=create(box);
			o1.run();
		</script>
	</body>
</html>
